use_frameworks!
inhibit_all_warnings! # 忽略引入库的所有警告

platform :ios, '10.0'
source "https://github.com/CocoaPods/Specs.git"
workspace 'CodingTest'
project 'CodingTest.xcodeproj'

def dev_pods
  pod 'Alamofire', '~> 5.4.4'
  pod 'HandyJSON', '~> 5.0.2'
  pod 'RxSwift', '~> 5'
  pod 'RxCocoa', '~> 5'
  pod 'SnapKit', '~> 5.0.1'
  pod 'Kingfisher', '~> 6.0.0'
  pod 'MJRefresh', '~> 3.5.0'
  pod 'MBProgressHUD', '~> 1.2.0'
  pod 'JXPhotoBrowser' '~> 3.1.3'
end

target 'CodingTest' do
  dev_pods
end

post_install do |installer|
    installer.pods_project.targets.each do |target|
    	if target.name == 'RxSwift'
           target.build_configurations.each do |config|
	           if config.name == 'Debug'
	              config.build_settings['OTHER_SWIFT_FLAGS'] ||= ['-D', 'TRACE_RESOURCES']
	           end
           end
        end
        target.build_configurations.each do |config|
            config.build_settings['ENABLE_BITCODE'] = 'NO'
            config.build_settings['STRIP_INSTALLED_PRODUCT'] = 'YES'
            config.build_settings['SWIFT_COMPILATION_MODE'] = 'wholemodule'
            if config.name == 'Debug'
                config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Onone'
                config.build_settings['GCC_OPTIMIZATION_LEVEL'] = '0'
            else
                config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Osize'
                config.build_settings['GCC_OPTIMIZATION_LEVEL'] = 's'
            end
        end
    end
end







